package com.wy.controller;

import com.wy.model.Room;
import com.wy.service.RoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @描述
 * @创建人 wangyue
 * @创建时间2019/12/217:06
 */
@RestController
@RequestMapping("feign")
public class FeignController {

    @Autowired
    private RoomService roomService;

    @RequestMapping("list")
    public List<Room> list(){
        return roomService.list();
    }
}
